package kr.hkit.powerjava.chapter11.work;

public class Customer extends Person {
//	private Person person;
	private int cstNum; //고객번호
	private String mileage; //마일리지
	
	public Customer() {	}
	
	public Customer(int cstNum ,String mileage, String name, 
						String address, String telNum) {
		super(name, address, telNum);
//		this.person = person;
		this.cstNum = cstNum;
		this.mileage = mileage;
	}
	
	public int getCstNum() {
		return cstNum;
	}

	public void setCstNum(int cstNum) {
		this.cstNum = cstNum;
	}

	public String getMileage() {
		return mileage;
	}

	public void setMileage(String mileage) {
		this.mileage = mileage;
	}

	@Override
	public String toString() {
		return super.toString()+"\nCustomer [고객번호 = " + cstNum + ", 마일리지 = " + mileage + "]";
	}	
}